<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <script>

        function Person(name) {
            this.name = name;
            this.say = function () {
                console.log(222);
            }
        }

        Person.prototype.say = function () {
            console.log(111);
        }


        const p = new Person('cc');



        // Person本身是一个函数，二函数也是一种对象，
        console.log(Person.__proto__ === Function.prototype);
        console.log(Function.prototype.__proto__ === Object.prototype);
        console.log(Object.prototype.__proto__ === null);

    </script>

</body>

</html>